

OBJ=obj
SRC=src
EXE=bin
CPPFLAGS=-c
CXX=g++

SRCFILES=
OBJFILES=$(OBJ)/heapUtilities.o

all: 	testHeapSort.exe \
		install

testHeapSort.exe : $(OBJ)/testHeapSort.o $(OBJFILES)
	$(CXX) -o testHeapSort.exe $(OBJ)/testHeapSort.o $(OBJFILES)

$(OBJ)/testHeapSort.o : $(SRC)/testHeapSort.cpp
	$(CXX) $(CPPFLAGS) $(SRC)/testHeapSort.cpp -o $(OBJ)/testHeapSort.o 

$(OBJ)/heapUtilities.o : $(SRC)/heapUtilities.cpp
	$(CXX) $(CPPFLAGS) $(SRC)/heapUtilities.cpp -o $(OBJ)/heapUtilities.o

install:
	mv *.exe $(EXE)/.

clean:
	rm -rf 	$(OBJ)/*.o $(EXE)/*.exe
